﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.Framework.Common.TableInfo
{
    /// <summary>
    /// 优惠信息表
    /// </summary>
    public class DBSaleInfo : DBBaseInfo
    {
        /// <summary>
        /// 表名称
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "SALEINFO";
        }
        /// <summary>
        /// 优惠ID
        /// </summary>
        public int SALEID { get; set; }
        /// <summary>
        /// 优惠说明
        /// </summary>
        public string SALEMEMO { get; set; }
        /// <summary>
        /// 优惠开始时间
        /// </summary>
        public DateTime STARTTIME { get; set; }
        /// <summary>
        /// 优惠结束时间
        /// </summary>
        public DateTime SENDTIME { get; set; }
        /// <summary>
        /// 优惠代码
        /// </summary>
        public string SALECODE { get; set; }
        /// <summary>
        /// 优惠类型 S0C 次数优惠 S0T 时段优惠 S0P 产品优惠 S0M 现金优惠 SOI 积分优惠 SOD 折扣优惠
        /// </summary>
        public string SALETYPE { get; set; }
        /// <summary>
        /// 优惠级别用来进行扩展 不同的级别 可以使用不同的优惠
        /// </summary>
        public string SALELEVE { get; set; }
        /// <summary>
        /// 优惠条件说明
        /// </summary>
        public string SALECONDITIOIN { get; set; }
        /// <summary>
        /// 优惠状态 S0A 优惠正在进行 S0T 优惠停止
        /// </summary>
        public string SALESTATE { get; set; }
        /// <summary>
        /// Sale 属于 优惠信息表
        /// </summary>
        public string SALE { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 优惠ID
            /// </summary>
            public const string SALEID = "SALEID";
            /// <summary>
            /// 优惠说明
            /// </summary>
            public const string SALEMEMO = "SALEMEMO";
            /// <summary>
            /// 优惠开始时间
            /// </summary>
            public const string STARTTIME = "STARTTIME";
            /// <summary>
            /// 优惠结束时间
            /// </summary>
            public const string SENDTIME = "SENDTIME";
            /// <summary>
            /// 优惠代码
            /// </summary>
            public const string SALECODE = "SALECODE";
            /// <summary>
            /// 优惠类型 S0C 次数优惠 S0T 时段优惠 S0P 产品优惠 S0M 现金优惠 SOI 积分优惠 SOD 折扣优惠
            /// </summary>
            public const string SALETYPE = "SALETYPE";
            /// <summary>
            /// 优惠级别用来进行扩展 不同的级别 可以使用不同的优惠
            /// </summary>
            public const string SALELEVE = "SALELEVE";
            /// <summary>
            /// 优惠条件说明
            /// </summary>
            public const string SALECONDITIOIN = "SALECONDITIOIN";
            /// <summary>
            /// 优惠状态 S0A 优惠正在进行 S0T 优惠停止
            /// </summary>
            public const string SALESTATE = "SALESTATE";
            /// <summary>
            /// Sale 属于 优惠信息表
            /// </summary>
            public const string SALE = "SALE";
        }
        /// <summary>
        /// 优惠类型 S0C 次数优惠 S0T 时段优惠 S0P 产品优惠 S0M 现金优惠 SOI 积分优惠 SOD 折扣优惠
        /// </summary>
        public static class EMUM_SALETYPE
        {
            /// <summary>
            /// 优惠类型 S0C
            /// </summary>
            public const string SOC = "SOC";
            /// <summary>
            ///  次数优惠 S0T
            /// </summary>
            public const string SOT = "SOT";
            /// <summary>
            ///  时段优惠 S0P
            /// </summary>
            public const string SOP = "SOP";
            /// <summary>
            ///  产品优惠 S0M
            /// </summary>
            public const string SOM = "SOM";
            /// <summary>
            ///  现金优惠 SOI
            /// </summary>
            public const string SOI = "SOI";
            /// <summary>
            ///  积分优惠 SOD 折扣优惠
            /// </summary>
            public const string SOD = "SOD";
        }
    }
}
